<?php
define('DS',DIRECTORY_SEPARATOR);
//系统根目录
define('ROOT',dirname(dirname(__FILE__)));
require_once(ROOT. DS.'config'.DS.'eloquent.php');

$last = '2015-10-04 16:01:00';
$cron = Cron\CronExpression::factory('*/3 * * * *');
echo $cron->isDue();
//echo $cron->getPreviousRunDate()->format('Y-m-d H:i:s');
exit;
//echo $cron->getPreviousRunDate()->format('Y-m-d H:i:s');
//job队列，保存内存
//job队列循环，当前时间是否匹配job----是，取出，时间上

// Calculate a run date two iterations into the future
$cron = Cron\CronExpression::factory('@daily');
//echo $cron->getNextRunDate(null, 2)->format('Y-m-d H:i:s');

// Calculate a run date relative to a specific time
$cron = Cron\CronExpression::factory('@monthly');
//echo $cron->getNextRunDate('2010-01-13 00:00:00')->format('Y-m-d H:i:s');

